3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to calculate cross products of vectors.
You can use the Q3Vector2D_Cross function to determine the cross product of two two-dimensional vectors.
float Q3Vector2D_Cross (
const TQ3Vector2D *v1,
const TQ3Vector2D *v2);
You can use the Q3Vector3D_Cross function to determine the cross product of two three-dimensional vectors.
TQ3Vector3D *Q3Vector3D_Cross (
const TQ3Vector3D *v1,
const TQ3Vector3D *v2,
TQ3Vector3D *result);
You can use the Q3Point3D_CrossProductTri function to determine the cross product of the two vectors defined by three three-dimensional points.
TQ3Vector3D *Q3Point3D_CrossProductTri (
const TQ3Point3D *point1,
const TQ3Point3D *point2,
const TQ3Point3D *point3,
TQ3Vector3D *crossVector);
Previous | QD3D Book | Overview | Chapter Contents | Next |